package com.csnf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountMapper {

    //扣减库存
    @Update("update tb_account set money=money-#{money} where user_id=#{userId}")
    public int updateAccount(String userId,int money);


}
